﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using KetBanBonPhuong;

public partial class Admin_UserControls_PhotoCommentManagement : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void RadGrid1_iTemcommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
    {
        if (e.CommandName == "Xem")
        {
            return;
        }
        if (e.CommandName == "Them")
        {
            return;
        }

        if (e.CommandName == "Sua")
        {
            return;
        }

        if (e.CommandName == "Xoa")
        {
            return;
        }

    }
    protected void RadGrid1_PreRender(object sender, EventArgs e)
    {
        DataTable dt = CommentPhoto.GetAll();
        dt.Columns.Add("username");
        foreach (DataRow dtRow in dt.Rows)
        {
            User user = User.GetInfo((int)dtRow["user_id"]);
            dtRow["username"] = user.UserName;
        }
        RadGrid1.DataSource = dt;
        RadGrid1.DataBind();
    }
    protected void RadRotator1_ItemClick(object sender, Telerik.Web.UI.RadRotatorEventArgs e)
    {

    }
}
